package com.ccit.common.utils;

public class RandomCode {
    public static String getRandomCode() {
        int[] vCode = new int[6];
        String rCode = "";
        for (int i = 0; i < 6; i++) {
            vCode[i] = (int) (Math.random() * 10);
            while (vCode[0] == 0) {
                vCode[0] = (int) (Math.random() * 10);
            }
            rCode += vCode[i];
        }
        return rCode;
    }

}
